package ch8;

//自定义异常类
//1.编写一个类，继承Exception类或它的子类RuntimeException
//2.重构overload构造方法
//3.在项目中使用自定义的异常类
public class CrmException extends Exception{

	/**
	 * 这是序列化编号，用于对序列化对象进行识别的编号
	 * 序列化过程是对数据进行整理的过程，整理后的数据更适合网络传输，I/O读写.
	 */
	private static final long serialVersionUID = 1782578562903158668L;

	public CrmException() {
		super();
		
	}

	public CrmException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
		super(message, cause, enableSuppression, writableStackTrace);
		
	}

	public CrmException(String message, Throwable cause) {
		super(message, cause);
		
	}

	public CrmException(String message) {
		super(message);
		
	}

	public CrmException(Throwable cause) {
		super(cause);
		
	}
	
	

}
